package com.qinhailin.common.model;

import java.sql.Timestamp;

/**
 * <p>主表(类) 基类</p>
 * <p>要求数据表要有sID, sCreateTime, sLastUpdate, sVersion这4个栏位!</p>
 * <p>最后审核:2019-10-17</p>
 * <p>最后审核:2019-11-18</p>
 * @author harrydeep@wardyan.top
 */

@SuppressWarnings("unchecked")
public abstract class BaseMasterModel<T extends BaseMasterModel<T>> extends BaseModel<T> {
	




	@Override
	public String primaryKey() {
		return "sID";
	}


	public T setSID(Integer sID) {
		this.set("sID", sID);
		return (T) this;
	}
	
	public Integer getSID() {
		return this.getInt("sID");
	}
	
	public T setSCreateTime(Timestamp sCreateTime) {
		this.set("sCreateTime", sCreateTime);
		return (T) this;
	}
	
	public Timestamp getSCreateTime() {
		return this.getTimestamp("sCreateTime");
	}
	
	public T setSLastUpdate(Timestamp sLastUpdate) {
		this.set("sLastUpdate", sLastUpdate);
		return (T) this;
	}
	
	public Timestamp getSLastUpdate() {
		return this.getTimestamp("sLastUpdate");
	}
	
	public T setSVersion(Integer sVersion) {
		this.set("sVersion", sVersion);
		return (T) this;
	}
	
	public Integer getSVersion() {
		return this.getInt("sVersion");
	}


	
	
}
